﻿@{

}
@model liaowa2.Entity.DataModel.Navigation
<script src="~/Scripts/webuploader/webuploader.min.js"></script>
<script src="~/Scripts/uploader.js"></script>
<script type="text/javascript">
    $(function () {
        //初始化表单验证
        $("#form1").initValidform();
        //初始化上传控件
        $(".upload-img").InitUploader({ filesize: "10240", sendurl: "/Upload/index", swf: "../../scripts/webuploader/uploader.swf", filetypes: "gif,jpg,png,bmp" });


    });
</script>

<form method="post" action="/Nav/Update" id="form1">
    <!--导航栏-->
    <div class="location">
        <a href="/Nav/List" class="back"><i></i><span>返回列表页</span></a>
        <a href="/home/center" class="home"><i></i><span>首页</span></a>
        <i class="arrow"></i>
        <a href="/Nav/List"><span>导航列表</span></a>
        <i class="arrow"></i>
        <span>编辑后台导航</span>
    </div>
    <div class="line10"></div>
    <!--/导航栏-->
    <!--内容-->
    <div id="floatHead" class="content-tab-wrap" style="height: 42px;">
        <div class="content-tab" style="width: 1139px; position: static; top: 52px;">
            <div class="content-tab-ul-wrap">
                <div class="tab-title"><span></span><i></i></div><ul>
                    <li><a class="selected" href="javascript:;">基本信息</a></li>
                </ul>
            </div>
        </div>
    </div>
    @Html.Hidden("id", Model.id)
    <div class="tab-content">
        <dl>
            <dt>上级导航</dt>
            <dd>
                <div class="rule-single-select single-select">
                    <div class="boxwrap">
                        @*<a class="select-tit" href="javascript:;"><span>无父级导航</span><i></i></a>*@
                        <div class="select-items" style="display: none;">
                            <ul>@Html.DropDownList("PanretID", liaowa2.Web.MenuHelper.HtmlHelp.NavDropList(Model.parent_id.ToString(), Model.id.ToString()), new { @class = "selected" })</ul>
                        </div><i class="arrow" style="display: none;"></i>
                    </div>

                </div>
            </dd>
        </dl>
        <dl>
            <dt>排序数字</dt>
            <dd>
                <input name="txtSortId" type="text" value="@Model.sort_id" id="txtSortId" class="input small" datatype="n" sucmsg=" ">
                <span class="Validform_checktip">*数字，越小越向前</span>
            </dd>
        </dl>
        <dl>
            <dt>是否隐藏</dt>
            <dd>
                <div class="rule-single-checkbox single-checkbox">
                    <a href="javascript:;"><i class="off">否</i><i class="on">是</i></a>
                    @Html.CheckBox("cbIsLock", Model.is_lock == 1 ? true : false, new { style = "display: none;" })
                    @*<input id="cbIsLock" type="checkbox" name="cbIsLock" style="display: none;" checked="@(Model.is_lock==1?"checked":"")">*@
                </div>
                <span class="Validform_checktip">*隐藏后不显示在界面导航菜单中。</span>
            </dd>
        </dl>
        <dl>
            <dt>调用别名</dt>
            <dd>
                <input name="txtName" value="@Model.name" ajaxurl="/tools/CheckNavName?old_name=@(Model.name)" type="text" id="txtName" class="input normal" datatype="/^[a-zA-Z0-9\-\_]{2,50}$/" errormsg="请填写正确的ID" sucmsg=" ">
                <span class="Validform_checktip">权限控制名称，只允许字母、数字、下划线</span>
            </dd>
        </dl>
        <dl>
            <dt>导航标题</dt>
            <dd><input name="txtTitle" value="@Model.title" type="text" id="txtTitle" class="input normal" datatype="*1-100" sucmsg=" "> <span class="Validform_checktip">*导航中文标题，100字符内</span></dd>
        </dl>
        <dl>
            <dt>副标题</dt>
            <dd>
                <input name="txtSubTitle" type="text" id="txtSubTitle" class="input normal" value="@Model.sub_title" datatype="*0-100" sucmsg=" ">
                <span class="Validform_checktip">非必填，当导航拥有两个名称时使用</span>
            </dd>
        </dl>
        <dl>
            <dt>自定义图标</dt>
            <dd>
                <input name="txtIconUrl" type="text" id="txtIconUrl" value="@(Model.icon_url)" class="input normal upload-path">
                <div class="upload-box upload-img"></div><span class="Validform_checktip"></span>
            </dd>
        </dl>
        <dl>
            <dt>链接地址</dt>
            <dd>
                <input name="txtLinkUrl" value="@Model.link_url" type="text" maxlength="255" id="txtLinkUrl" class="input normal upload-path">
                <span class="Validform_checktip">当前管理目录，有子导航不用填</span>
            </dd>
        </dl>
        <dl>
            <dt>备注说明</dt>
            <dd>
                <textarea name="txtRemark" rows="2" cols="20" id="txtRemark" class="input">@Model.remark</textarea>
                <span class="Validform_checktip">非必填，可为空</span>
            </dd>
        </dl>
        <dl>
            <dt>权限资源</dt>
            <dd>
                <div class="rule-multi-porp multi-porp">
                    <ul><li class="selected"><a href="javascript:;">显示(Show)</a><i></i></li><li class="selected"><a href="javascript:;">查看(View)</a><i></i></li><li class="selected"><a href="javascript:;">添加(Add)</a><i></i></li><li class="selected"><a href="javascript:;">修改(Edit)</a><i></i></li><li class="selected"><a href="javascript:;">删除(Delete)</a><i></i></li><li class="selected"><a href="javascript:;">审核(Audit)</a><i></i></li><li class="selected"><a href="javascript:;">回复(Reply)</a><i></i></li><li class="selected"><a href="javascript:;">确认(Confirm)</a><i></i></li><li class="selected"><a href="javascript:;">取消(Cancel)</a><i></i></li><li class="selected"><a href="javascript:;">作废(Invalid)</a><i></i></li><li class="selected"><a href="javascript:;">生成(Build)</a><i></i></li><li class="selected"><a href="javascript:;">安装(Instal)</a><i></i></li><li class="selected"><a href="javascript:;">卸载(Unload)</a><i></i></li><li class="selected"><a href="javascript:;">备份(Back)</a><i></i></li><li class="selected"><a href="javascript:;">还原(Restore)</a><i></i></li><li class="selected"><a href="javascript:;">替换(Replace)</a><i></i></li></ul>
                    <span id="cblActionType" style="display: none;">
                        <input id="cblActionType" type="checkbox" name="cblActionType" value="Show" @if (Model.action_type.Contains("Show")) { <text> checked </text>  }><label for="cblActionType_0">显示(Show)</label>
                        <input id="cblActionType" type="checkbox" name="cblActionType" value="View" @if (Model.action_type.Contains("View")) { <text> checked </text>   }><label for="cblActionType_1">查看(View)</label>
                        <input id="cblActionType" type="checkbox" name="cblActionType" value="Add" @if (Model.action_type.Contains("Add")) { <text> checked </text>   }><label for="cblActionType_2">添加(Add)</label>
                        <input id="cblActionType" type="checkbox" name="cblActionType" value="Edit" @if (Model.action_type.Contains("Edit")) { <text> checked </text>   }><label for="cblActionType_3">修改(Edit)</label>
                        <input id="cblActionType" type="checkbox" name="cblActionType" value="Delete" @if (Model.action_type.Contains("Delete")) { <text> checked </text>   }><label for="cblActionType_4">删除(Delete)</label>
                        @*<input id="cblActionType" type="checkbox" name="cblActionType" value="Audit" @if (Model.action_type.Contains("Audit"))
                                                                                                         { <text> checked </text> }><label for="cblActionType_5">审核(Audit)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Reply" @if (Model.action_type.Contains("Reply"))
                                                                                                         { <text> checked </text> }><label for="cblActionType_6">回复(Reply)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Confirm" @if (Model.action_type.Contains("Confirm"))
                                                                                                           { <text> checked </text> }><label for="cblActionType_7">确认(Confirm)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Cancel" @if (Model.action_type.Contains("Cancel"))
                                                                                                          { <text> checked </text> }><label for="cblActionType_8">取消(Cancel)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Invalid" @if (Model.action_type.Contains("Invalid"))
                                                                                                           { <text> checked </text> }><label for="cblActionType_9">作废(Invalid)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Build" @if (Model.action_type.Contains("Build"))
                                                                                                         { <text> checked </text> }><label for="cblActionType_10">生成(Build)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Instal" @if (Model.action_type.Contains("Instal"))
                                                                                                          { <text> checked </text> }><label for="cblActionType_11">安装(Instal)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Unload" @if (Model.action_type.Contains("Unload"))
                                                                                                          { <text> checked </text> }><label for="cblActionType_12">卸载(Unload)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Back" @if (Model.action_type.Contains("Back"))
                                                                                                        { <text> checked </text> }><label for="cblActionType_13">备份(Back)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Restore" @if (Model.action_type.Contains("Restore"))
                                                                                                           { <text> checked </text> }><label for="cblActionType_14">还原(Restore)</label>
                            <input id="cblActionType" type="checkbox" name="cblActionType" value="Replace" @if (Model.action_type.Contains("Replace"))
                                                                                                           { <text> checked </text> }><label for="cblActionType_15">替换(Replace)</label>*@
                    </span>
                </div>
            </dd>
        </dl>
    </div>
    <!--/内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap" style="position: fixed;">
            <input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit" class="btn">
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);">
        </div>
    </div>
    <!--/工具栏-->
</form>
